<?php
declare(strict_types=1);

namespace app\model;

use think\Model;

class UserPaymentRecord extends Model
{
    protected $autoWriteTimestamp = true;

    // 业务类型常量
    const TYPE_EXPRESS = 1; // 快递费
    const TYPE_RECHARGE = 2; // 余额充值
    const TYPE_MEMBER = 3; // 会员购买

    // 支付状态常量
    const STATUS_UNPAID = 0; // 未支付
    const STATUS_PAID = 1; // 已支付

    // 关联用户
    public function user()
    {
        return $this->belongsTo(User::class);
    }
} 